[Unit]
Description=HAProxy Load Balancer
After=syslog.target network.target

[Service]
ExecStartPre={{ pillar['haproxy_install_dir'] }}/sbin/haproxy -f {{ pillar['haproxy_install_dir'] }}/conf/haproxy.cfg   -c -q
ExecStart={{ pillar['haproxy_install_dir'] }}/sbin/haproxy -Ws -f {{ pillar['haproxy_install_dir'] }}/conf/haproxy.cfg  -p /var/run/haproxy.pid
ExecReload=/bin/kill -USR2 

[Install]
WantedBy=multi-user.target
